  

interface singleIdReq{
  processId : number | string
  logId?: number | string
}

interface VersionReq {
  code?: number | string,
  version?: number
}

interface definitionPageReq {
  isTmp?:boolean
  name?: string
  page: number
  limit: number
}


interface CodeReq {
  projectCode: number
}

interface CodesReq {
  codes: string
}

interface FileReq {
  file: any
}

interface NameReq {
  name: string
}

interface ReleaseStateReq {
  releaseState: 'OFFLINE' | 'ONLINE'
}



interface LimitReq {
  limit: number
}

interface PageReq {
  pageNo: number
  pageSize: number
}

interface ListReq extends PageReq {
  searchVal?: string
  userId?: number
}

interface ProcessDefinitionReq {
  name: string
  locations: string
  taskDefinitionJson: string
  taskRelationJson: string
  tenantCode: string
  executionType: string
  description?: string
  globalParams?: string
  timeout?: number
}

interface TargetCodeReq {
  targetProjectCode: number
}

interface SimpleListRes {
  id: number
  code: any
  name: string
  projectCode: any
}

export {
  definitionPageReq,
  singleIdReq,
  CodeReq,
  CodesReq,
  FileReq,
  NameReq,
  ReleaseStateReq,
  VersionReq,
  LimitReq,
  PageReq,
  ListReq,
  ProcessDefinitionReq,
  TargetCodeReq,
  SimpleListRes
}
